extends Line2D

var player

func _ready():
	player = get_parent().find_child("Player")

func _process(delta):
	var position = player.position
	add_point(position)
	if get_point_count() > 29:
		remove_point(0)
